<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/header', TEMPLATE_INCLUDEPATH)) : (include template('public/header', TEMPLATE_INCLUDEPATH));?>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/comhead', TEMPLATE_INCLUDEPATH)) : (include template('public/comhead', TEMPLATE_INCLUDEPATH));?>
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
    .yg5_key>div{float: left;line-height: 34px;}
    .store_td1{height: 45px;}
    .store_list_img{width: 40px;height: 40px;}
    .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;font-size: 12px;}
    .yg5_tr2>td{padding: 10px 15px;border: 1px solid #e5e5e5;text-align: center;}
    .yg5_tr1>th{
        border: 1px solid #e5e5e5;
        padding-left: 15px;
        background-color: #FAFAFA;
        font-weight: bold;
        text-align: center;
    }
    .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
    .store_inp{margin-left: 5px;}
    .ygshanchu{color: white;background-color: #44ABF7;}
    .accout_inp{width: 100%;height: 35px;border: 1px solid #cccccc;font-size: 14px;color: #333;}
    /*    .navback{display: none;}
        .yg_back{margin-left: 170px;}*/
    .scour{
        position: relative;
        width: 100%;
        display: block;
    }
    .scour:hover .scour_tip{
        display: block;
    }
    .scour_tip{
        display: none;
        position: absolute;
        left: 50%;
        bottom: 27px;
        background-color: #333;
        color: white;
        padding: 2px 7px;
        border-radius: 2px;
        font-size: 10px;
        margin-left: -20px
    }
    .scour_tip:after{
        content: "";
        display:block;
        width: 0;
        height: 0;
        border-bottom: 10px solid #333;
        border-left: 10px solid transparent;
        transform: rotate(45deg);
        position: absolute;
        left: 40%;
        top: 78%;
    }
    .col-md-1{
        width: 50px;
        height: 50px;
    }
    .col-md-2{
        width:100px;
        height: 50px;
    }
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li  <?php  if($type=='0') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('newinydorder',array('type'=>0));?>">全部订单</a></li>
    <li   <?php  if($type=='1') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('newinydorder',array('type'=>1));?>">预定订单</a></li>
    <li   <?php  if($type=='2') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('newinydorder',array('type'=>2));?>">交易完成订单</a></li>
    <li   <?php  if($type=='3') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('newinydorder',array('type'=>3));?>">失效订单</a></li>

</ul>
<div class="main">
    <div class="panel panel-default">
        <div class="panel-body">

            <form action="" method="POST" class="col-md-6">
                <div class="input-group" style="width: 300px">
                    <input type="text" name="keywords" class="form-control" placeholder="请输入姓名/订单编号">
                    <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" name="submit" value="查找"/>
                </span>
                </div>
                <input type="hidden" name="token" value="<?php  echo $_W['token'];?>"/>
            </form>
            <form action="" method="POST" class="col-md-6">
                <div class="input-group" style="width: 100px">
                    <?php  echo tpl_form_field_daterange('time',$_GPC['time'],true);?>
                    <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" name="submit2" value="查找"/>
                    <!--<input type="submit" class="btn btn-sm ordersucess" name="export_submit" value="导出"/>-->
                    <input type="hidden" name="token" value="<?php  echo $_W['token'];?>"/>
                </span>
                </div><!-- /input-group -->
            </form>

        </div>
    </div>
    <div class="panel panel-default">
            <div class="panel-heading">
                列表
            </div>
            <div class="panel-body" style="padding: 0px 15px;">
                <div class="row">
                    <table class="yg5_tabel col-md-12" id="test_table">
                        <tr class="yg5_tr1">
                            <th class="col-md-1" >id</th>
                            <th class="col-md-1">订单号</th>
                            <th class="col-md-1">用户id</th>
                            <!--<th class="col-md-1">商家名称</th>-->
                            <!--<th class="col-md-1">商家类型</th>-->
                            <th class="col-md-1">预约金额</th>
                            <th class="col-md-1">状态</th>
                            <th class="col-md-1">消费金额</th>
                            <th class="col-md-1">下单时间</th>
                            <th class="col-md-1">预定时间</th>
                            <th class="col-md-1">消费时间</th>
                            <th class="col-md-1">预定人姓名</th>
                            <th class="col-md-1">预定人电话</th>
                            <th class="col-md-1">预定人数</th>
                            <th class="col-md-1">预定位置</th>
                            <th class="col-md-1">操作</th>
                        </tr>
                        <?php  if(is_array($list)) { foreach($list as $row) { ?>
                        <tr class="yg5_tr2">
                            <td ><?php  echo $row['id'];?></td>
                            <td><?php  echo $row['order_sn'];?></td>
                            <td><?php  echo $row['user_id'];?></td>
                            <!--<td><?php  echo $row['md_name'];?></td>-->
                            <!--<td><?php  echo $row['store_type'];?></td>-->
                            <td><?php  echo $row['yd_price'];?></td>
                            <td><?php  echo $row['status'];?></td>
                            <td><?php  echo $row['xf_price'];?></td>
                            <td><?php  echo $row['create_time'];?></td>
                            <td><?php  echo $row['yd_time'];?></td>
                            <td><?php  echo $row['com_time'];?></td>
                            <td><?php  echo $row['yd_name'];?></td>
                            <td><?php  echo $row['yd_mobile'];?></td>
                            <td><?php  echo $row['yd_people'];?></td>
                            <td><?php  echo $row['f_name'];?></td>
                            <td>
                                <a href="<?php  echo $this->createWebUrl('newinydorderinfo', array('id' => $row['id']))?>" class="storespan btn btn-xs">
                                    <span class="fa fa-pencil"></span>
                                    <span class="bianji">查看详情
                                    <span class="arrowdown"></span>
                                </span>
                                </a>
                                <!--<a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal<?php  echo $row['id'];?>">-->
                                <!--<span class="fa fa-trash-o"></span>-->
                                <!--<span class="bianji">删除-->
                                    <!--<span class="arrowdown"></span>-->
                                <!--</span>-->
                            <!--</a>-->
                            </td>
                            <!--<div class="modal fade" id="myModal<?php  echo $row['id'];?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">-->
                                <!--<div class="modal-dialog" role="document">-->
                                    <!--<div class="modal-content">-->
                                        <!--<div class="modal-header">-->
                                            <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
                                            <!--<h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>-->
                                        <!--</div>-->
                                        <!--<div class="modal-body" style="font-size: 20px">-->
                                            <!--确定删除么？-->
                                        <!--</div>-->
                                        <!--<div class="modal-footer">-->
                                            <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
                                            <!--<a href="<?php  echo $this->createWebUrl('newydorder', array('op'=>'delete','id' => $row['id']))?>" type="button" class="btn btn-info" >确定</a>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </tr>
                        <?php  } } ?>
                        <?php  if(empty($list)) { ?>
                        <tr class="yg5_tr2">
                            <td colspan="14">
                                暂无信息
                            </td>
                        </tr>
                        <?php  } ?>


                    </table>
                </div>
            </div>
        </div>

</div>
<div class="text-right we7-margin-top">
    <?php  echo $pager;?>
</div>


<!-- <?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?> -->
<script type="text/javascript">
    $(function(){
        $("#frame-1").show();
        $("#yframe-1").addClass("wyactive");
    })
</script>





